package study.Lambda;

import java.util.ArrayList;
import java.util.List;

public class Filter {
    List<String> filterStrings(List<String> strings, Predicate1<String> predicate) {
        List<String> filtered = new ArrayList<>();
        for (String s : strings) {
            if (predicate.test(s)) {
                filtered.add(s);
            }
        }
        return filtered;
    }
}
